package com.wenli.lt.mapper;

import com.wenli.lt.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wenli.lt.entity.po.BeFansPo;
import com.wenli.lt.entity.po.FansPo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lt
 * @since 2021-03-21
 */
public interface UserMapper extends BaseMapper<User> {

    @Update("update user set password = #{password} where studentNumber = #{studentNumber} ")
   void UpdatePassword(String studentNumber,String password);

    @Select("select * from user where studentNumber = #{studentNumber} ")
    User  selectByIdInfo(@Param("studentNumber") String studentNumber);

    List<FansPo> getFansInfoByNo(@Param("studentNumber") String studentNumber);

    List<BeFansPo> getbeFansInfoByNo(@Param("studentNumber") String studentNumber);

}
